package com.wuye.model.customer;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Created by zhanchi on 2016/6/30.
 */
public class OptionConvert implements Serializable{
//    public String toString() {
//        try {
//            return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);
//        } catch (Exception e) {
//            return e.getMessage();
//        }
//    }
    private Integer id;//模板id
    private String names;//模板名称
    private String createTime;//模板创建时间
    //一级分类
    private List<OptionFirst> arr = new ArrayList<OptionFirst>();

    public OptionConvert(Integer id, String names, String createTime, List<OptionFirst> arr) {
        this.id = id;
        this.names = names;
        this.createTime = createTime;
        this.arr = arr;
    }

    public OptionConvert() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNames() {
        return names;
    }

    public void setNames(String names) {
        this.names = names;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public List<OptionFirst> getArr() {
        return arr;
    }

    public void setArr(List<OptionFirst> arr) {
        this.arr = arr;
    }

    @Override
    public String toString() {
        return "{\"id\":\"" + id + "\",\"names\":\"" + names + "\", \"createTime\":\"" + createTime + "\", \"arr\":" + arr +  "}";
    }
}
